package com.yummiii.dokueditor.model.doku;

public class DokuPage extends DokuNSElement {
	String name;
	int mtime;
	int size;
	boolean modified;
	DokuNamespace father;
	
	public DokuPage(String name,int mtime,int size){
		this.name=name;
		this.mtime=mtime;
		this.size=size;
		modified=false;
	}
	
	public void setFather(DokuNamespace father){
		this.father=father;
	}
	
	public String getName(){
		return name;
	}
	
	public String getFullName(){
		String name=this.name;
		DokuNSElement current=this;
		while(current.getFather()!=null){
			current=current.getFather();
			if(current.getName().length()>0)
			name=current.getName()+":"+name;
		}
		return name;
	}

	@Override
	public DokuNSElement getFather() {
		return this.father;
	}
}
